<template>
  <div class="pk-button">
    <el-button v-bind="$attrs" :type="type" :size="size" @click="handlerClick"><slot></slot></el-button>
  </div>
</template>

<script setup>
import { defineProps, defineEmits } from 'vue'
const emits = defineEmits(['click'])
defineProps({
  size:{
    type: String, 
    default: 'default'
  },
  type: { 
    type: String, 
    default: 'default' 
  }
})


const handlerClick = (e) => {
  emits('click', e)
}
</script>

<style lang="scss" scoped>
.pk-button{
  display: inline-block;
}
</style>